package com.cobra.minio.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author cobra
 * @date 2021年12月07日 14:33
 */
@Builder
@Data
public class MinioFile {
    @TableId
    private String uuid;
    private String md5;
    private Boolean uploaded;
    private String uploadId;
    private Integer totalChunks;
    private Integer size;
    private String fileName;
    private String filePath;
    private String fileType;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
